import request from '@/utils/request'

// 查询律师信息列表
export function listLawyerInfo(query) {
  return request({
    url: '/petition/lawyerInfo/list',
    method: 'get',
    params: query
  })
}

// 查询律师信息详细
export function getLawyerInfo(id) {
  return request({
    url: '/petition/lawyerInfo/' + id,
    method: 'get'
  })
}

// 新增律师信息
export function addLawyerInfo(data) {
  return request({
    url: '/petition/lawyerInfo',
    method: 'post',
    data: data
  })
}

// 修改律师信息
export function updateLawyerInfo(data) {
  return request({
    url: '/petition/lawyerInfo',
    method: 'put',
    data: data
  })
}

// 删除律师信息
export function delLawyerInfo(id) {
  return request({
    url: '/petition/lawyerInfo/' + id,
    method: 'delete'
  })
}
